package com.ruoyi.t.mapper;

import java.math.BigDecimal;
import java.util.List;
import com.ruoyi.t.domain.TOrderUserPayment;

/**
 * 订单供应商结款Mapper接口
 *
 * @author YY
 * @date 2025-02-06
 */
public interface TOrderUserPaymentMapper
{
    /**
     * 查询订单供应商结款
     *
     * @param id 订单供应商结款主键
     * @return 订单供应商结款
     */
    public TOrderUserPayment selectTOrderUserPaymentById(Long id);

    /**
     * 查询订单供应商结款列表
     *
     * @param tOrderUserPayment 订单供应商结款
     * @return 订单供应商结款集合
     */
    public List<TOrderUserPayment> selectTOrderUserPaymentList(TOrderUserPayment tOrderUserPayment);

    /**
     * 新增订单供应商结款
     *
     * @param tOrderUserPayment 订单供应商结款
     * @return 结果
     */
    public int insertTOrderUserPayment(TOrderUserPayment tOrderUserPayment);

    /**
     * 修改订单供应商结款
     *
     * @param tOrderUserPayment 订单供应商结款
     * @return 结果
     */
    public int updateTOrderUserPayment(TOrderUserPayment tOrderUserPayment);

    /**
     * 删除订单供应商结款
     *
     * @param id 订单供应商结款主键
     * @return 结果
     */
    public int deleteTOrderUserPaymentById(Long id);

    /**
     * 批量删除订单供应商结款
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTOrderUserPaymentByIds(Long[] ids);

    BigDecimal sumPrice(Long userId);
}
